﻿package Game.PlaySystem{
	public class Player {
		private var m_Name:String;
		private var m_Type:int;
		private var m_Cerveau:*;
		
		private const TYPE_HUMAN:int= 0;
		private const TYPE_IA:int=1;
		
		public function Player(_Pname:String,_human:Boolean):void{
			if(_human){
				m_Type=TYPE_HUMAN;
			}else{
				m_Type=TYPE_IA
			}
			
			m_Name = _Pname;			
		}
		public function askToPlay():String{
			switch (m_Type){
				case TYPE_HUMAN:
					return 'human';
				break;
				case TYPE_IA:
					//m_Creveau.Play();
					return 'ia_played';
				break;
			}
			return 'error';
			
		}
		public function toString():String{
			var string:String = 'Player --- \n';
			string+='\t Name : '+this.m_Name+' \n';
			string+='\t Type : '+this.m_Type+' \n';
			
			return string;
		}
	}
}